/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.web.servlet;

import com.web.service.Admin_deleteBoxService;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author liqianru
 */
@WebServlet("/admin_deleteBox")
public class Admin_deletebox extends HttpServlet {

    Admin_deleteBoxService tservice = new Admin_deleteBoxService();

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String qid = req.getParameter("qid");
        String[] qidary = qid.split(",");
        System.out.println(qidary[1].toString());
        int count = tservice.deleteBox(qidary);
        System.out.println(count+"  --"+qidary.length);
        if (count>0) {
            
        } else {

        }

    }

}
